package com.wf.smartcomm.server.bean;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import com.google.gson.annotations.Expose;

@Entity
@Table(name = "t_scores")
@JsonIgnoreProperties(ignoreUnknown = true)
public class Scores {
	@Id
	@Column(length = 32)
	private String objectId;
	

	
	@Expose
	@Column
	private Date createdAt;
	
	@Expose
	@Column
	private Integer type;
	
	@Column
	private Integer status;
	
	@Expose
	@Column
	private BigDecimal scale;
	
	@Expose
	@Column
	private BigDecimal scores;
	
	@Expose
	@Column
	private BigDecimal amount;
	
	@Expose
	@ManyToOne
	@JoinColumn(name="merchantId")
	private Merchant merchant;
	
	@ManyToOne
	@JoinColumn(name="terminalId")
	private Terminal terminal;
	
	@ManyToOne
	@JoinColumn(name="customer")
	private User customer;

	public String getObjectId() {
		return objectId;
	}

	public void setObjectId(String objectId) {
		this.objectId = objectId;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public BigDecimal getScale() {
		return scale;
	}

	public void setScale(BigDecimal scale) {
		this.scale = scale;
	}

	public BigDecimal getScores() {
		return scores;
	}

	public void setScores(BigDecimal scores) {
		this.scores = scores;
	}

	public Merchant getMerchant() {
		return merchant;
	}

	public void setMerchant(Merchant merchant) {
		this.merchant = merchant;
	}

	public User getCustomer() {
		return customer;
	}

	public void setCustomer(User customer) {
		this.customer = customer;
	}

	public Terminal getTerminal() {
		return terminal;
	}

	public void setTerminal(Terminal terminal) {
		this.terminal = terminal;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	
}
